import 'package:flutter/material.dart';

class EndLine extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new Container(
      color: const Color(0xFFEEEEEE),
      padding: const EdgeInsets.fromLTRB(5.0, 15.0, 5.0, 15.0),
      child: new Row(
        children: <Widget>[
          new Expanded(
            child: new Divider(
              height: 10.0,
            ),
            flex: 1,
          ),
          new Text(
            "我是有底线的",
            style: new TextStyle(color: Theme.of(context).accentColor),
          ),
          new Expanded(
            child: new Divider(
              height: 10.0,
            ),
            flex: 1,
          ),
        ],
      ),
    );
  }
}

class NoData extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new Container(
      color: const Color(0xFFEEEEEE),
      padding: const EdgeInsets.fromLTRB(5.0, 15.0, 5.0, 15.0),
      child: new Row(
        crossAxisAlignment: CrossAxisAlignment.center,
        mainAxisAlignment: MainAxisAlignment.center,
        children: <Widget>[
          new Text(
            "暂无数据",
            style: new TextStyle(color: Theme.of(context).accentColor),
          ),
        ],
      ),
    );
  }
}

class LoadMoreView extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new Container(
      color: const Color(0xFFEEEEEE),
      padding: const EdgeInsets.fromLTRB(5.0, 15.0, 5.0, 15.0),
      child: new Row(
        crossAxisAlignment: CrossAxisAlignment.center,
        mainAxisAlignment: MainAxisAlignment.center,
        children: <Widget>[
          SizedBox(
            child: new CircularProgressIndicator(strokeWidth: 2,),
            height: 25,
            width: 25,
          ),
          Padding(
            padding: new EdgeInsets.only(left: 20),
            child: new Text(
              "加载中。。。",
              style: new TextStyle(color: Theme.of(context).accentColor),
            ),
          ),
        ],
      ),
    );
  }
}
